import pinia
from data.config.DefaultConfig import player_data
from entiys.methods.augument.SaveAttribute import SaveAttribute
from entiys.npc.NPCLoader import NPCLoader
from game.TopClass import Windows
from game_control.save.saveManager import SaveManager


class WithSaveInfoWindows(Windows):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.savename = pinia.store.get("savename")
        self.saveattribute = SaveAttribute(saveName=self.savename)
        self.playerdata =  player_data(**self.saveattribute.getPlaydataJson())


    def UiShow(self):
        ...
    def Logic(self):
        ...

